﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Crgd.UAuthServer.Sdk
{
    public class UAuthIdentity //: IUAuthUser
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 是否为应用用户，如果为true，则表示该用户为应用用户，而非实际用户
        /// </summary>
        public bool IsAppUser { get; set; }

        /// <summary>
        /// 租户ID
        /// </summary>
        public string TenantId { get; set; }

        /// <summary>
        /// 用户角色
        /// </summary>
        public IEnumerable<string> Roles { get; set; }

        /// <summary>
        /// 用户主角色
        /// </summary>
        public string MainRole { get; set; }
    }
}
